package pratima;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;

public class InputReader {
	public static void main(String[] args) throws IOException {
		System.out.println("Scanner demo: Enter number ");
		Scanner scanner = new Scanner(System.in);
		int firstInt = scanner.nextInt();
		
		System.out.println("Scanner demo: Enter line ");
		String firstLine = scanner.next();
		
		BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
		
		System.out.println("Buffered Reader demo: Enter line ");
		String secondLine = bufferedReader.readLine();
		
		System.out.println("Buffered Reader demo: Enter integer ");
		int secondInt = Integer.parseInt(bufferedReader.readLine());
		
		scanner.close();
		bufferedReader.close();
	}
}
